<html lang="en">
<head>
	<meta charset="utf-8">
	<title><?php echo $title;?></title>
	<link id="css0" href="<?php echo base_url();?>application/views/css/root.css" rel="stylesheet" type="text/css" media="screen"/>
	
	<?php
	if($username){
		echo '<link id="css1" href="'.base_url().'application/views/css/'.$style.'" rel="stylesheet" type="text/css" media="screen"/>';
	}
	else{
		echo '<link id="css1" href="'.base_url().'application/views/css/main.css" rel="stylesheet" type="text/css" media="screen"/>';
	}
	?>
	
	<script type="text/javascript" src="<?php echo base_url();?>application/views/javascript/jquery.js"></script>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"></script>
	<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=true"></script>
	
	
	
	
	<?php include("javascript/goto_menu.php");?>
	
	<?php
	if($username){
		echo '
		<script type="text/javascript">
			$(document).ready(function () {
				switch_bg("'.$background.'");
			});
		</script>';
	}
	else{
		echo '
		<script type="text/javascript">
			$(document).ready(function () {
				switch_bg("orange.jpg");
			});
		</script>';
	}
	?>
	
</head>
<body>
<div id="main_menu">
	<div id="header">
		Restaurant Booster
	</div>
	
	<div id="username_menu_display">
		
		<?php
		if($username){
			echo "Logged in as ";
			echo $username;
		}
		?>
		
	</div>
	
	<div id="menu_selector">
		<img src="<?php echo base_url();?>application/views/images/selector.png"/>
	</div>
	
	<div id="buttons">
		
		<?php 
		if($username!=""){//logged in
			echo '<div id="btn_logout" style="cursor: hand;">Logout</div>';
			echo '<div id="btn_login" style="cursor: hand;"></div>';
			echo '<br/>';
			echo '<div id="btn_recommendations" style="cursor: hand;">Inbox</div>';
			echo '<div id="btn_create_account" style="cursor: hand;"></div>';
			//echo '<div id="btn_view_custom_list" style="cursor: hand;">My Restaurants</div>';
			echo '<div id="btn_add_restaurant" style="cursor: hand;">Add Restaurant</div>';

		}
		else{
			echo '<div id="btn_logout" style="cursor: hand;"></div>';
			echo '<div id="btn_login" style="cursor: hand;">Login</div>';
			echo '<br/>';
			echo '<div id="btn_create_account" style="cursor: hand;">Create a new account</div>';
			//echo '<div id="btn_view_custom_list" style="cursor: hand;"></div>';
			echo '<div id="btn_add_restaurant" style="cursor: hand;"></div>';
			echo '<div id="btn_recommendations" style="cursor: hand;"></div>';
		}
		?>

		<div id="btn_browse_restaurants" style="cursor: hand;">Browse Restaurant</div><br/>
		
		<!--<div id="addButton" style="cursor: hand;">add window test</div>
		<div id="btn_map_test" style="cursor: hand;">Show map test</div>
		<div id="btn_flickr_test3" style="cursor: hand;">Show flickr test3</div> -->
		
		<div id="btn_change_style" style="cursor: hand;">Change Style</div>

	</div>
	
	<div id="body_page">

